package com.umpay.dto.merBusi.req.consume;

import org.hibernate.validator.constraints.NotEmpty;

import com.umpay.annotation.Pattern;
import com.umpay.dto.merBusi.req.CommonBusiReq;

public class ConsumePOSPayNotifyBusiReq extends CommonBusiReq{

	@NotEmpty(message = "商户号不能为空")
	@Pattern(message="商户号格式不正确")
	private String merId;
	
	@NotEmpty(message = "支付类型不能为空")
	@Pattern(message="支付类型格式不正确")
	private String servType;
	
	@NotEmpty(message = "交易流水不能为空")
	@Pattern(message="交易流水格式不正确")
	private String trace;
	
	@NotEmpty(message = "机构号不能为空")
	@Pattern(message="机构号格式不正确")
	private String instId;
	
	@NotEmpty(message = "金额不能为空")
	@Pattern(message="金额格式不正确")
	private String amount;
	
	@NotEmpty(message = "交易状态不能为空")
	@Pattern(message="交易状态格式不正确")
	private String payState;

	@NotEmpty(message = "银行流水不能为空")
	@Pattern(message="银行流水格式不正确")
	private String paySeq;
	
	private String stlDate;
	
	private String tradeNo;
	
	/**
	 * 小额双免  [Y/N] 小额双免交易
	 */
	private String easyPaymentService;
	
	/**
	 * 银行卡类型  	00-借记卡 01-贷记卡
	 */
	private String cardType;
	
	/**
	 * 支付方式 	微信: WX
				支付宝: AL
				银行卡: BK 
	 */
	private String payType;
	
	public String getTradeNo() {
		return tradeNo;
	}

	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}

	public String getPaySeq() {
		return paySeq;
	}

	public void setPaySeq(String paySeq) {
		this.paySeq = paySeq;
	}

	public String getMerId() {
		return merId;
	}

	public void setMerId(String merId) {
		this.merId = merId;
	}


	public String getServType() {
		return servType;
	}

	public void setServType(String servType) {
		this.servType = servType;
	}

	public String getTrace() {
		return trace;
	}

	public void setTrace(String trace) {
		this.trace = trace;
	}

	public String getInstId() {
		return instId;
	}

	public void setInstId(String instId) {
		this.instId = instId;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getPayState() {
		return payState;
	}

	public void setPayState(String payState) {
		this.payState = payState;
	}

	public String getEasyPaymentService() {
		return easyPaymentService;
	}

	public void setEasyPaymentService(String easyPaymentService) {
		this.easyPaymentService = easyPaymentService;
	}

	public String getCardType() {
		return cardType;
	}

	public void setCardType(String cardType) {
		this.cardType = cardType;
	}
	
	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public String getStlDate() {
		return stlDate;
	}

	public void setStlDate(String stlDate) {
		this.stlDate = stlDate;
	}

	@Override
	public String toString() {
		return "ConsumePOSPayNotifyBusiReq [merId=" + merId + ", servType="
				+ servType + ", trace=" + trace + ", instId=" + instId
				+ ", amount=" + amount + ", payState=" + payState + ", paySeq="
				+ paySeq + ", stlDate=" + stlDate + ", tradeNo=" + tradeNo
				+ ", easyPaymentService=" + easyPaymentService + ", cardType="
				+ cardType + ", payType=" + payType + "]";
	}

}
